package com.example.mylibrarybase.yumengmeng12.adapter;//package com.example.yumengmeng12.adapter;
//
//import android.content.Context;
//import android.content.Intent;
//import android.net.Uri;
//import android.os.Bundle;
//import android.os.Handler;
//import android.support.v7.widget.RecyclerView;
//import android.text.TextUtils;
//import android.view.LayoutInflater;
//import android.view.View;
//import android.view.ViewGroup;
//import android.widget.AdapterView;
//import android.widget.CheckBox;
//import android.widget.LinearLayout;
//import android.widget.RadioButton;
//import android.widget.RadioGroup;
//import android.widget.RatingBar;
//import android.widget.TextView;
//
//import com.example.mylibrarybase.utils.Utils.Arith;
//import com.example.mylibrarybase.utils.Utils.LogUtils;
//import com.example.mylibrarybase.utils.Utils.PhoneSetNum;
//import com.example.mylibrarybase.utils.Utils.UtilsCallPhone;
//import com.example.mylibrarybase.utils.Utils.UtilsToast;
//import com.example.mylibrarybase.utils.Utils.linesRadioGroup.LineRadioGroup;
//import com.facebook.drawee.view.SimpleDraweeView;
//import com.jac.qpsc.R;
//import com.jac.qpsc.View.NoScroolGridView;
//import com.jac.qpsc.View.ScrollListenerHorizontalScrollView;
//import com.jac.qpsc.entity.BiddingDetailbean;
//import com.jac.qpsc.entity.Discuss;
//import com.jac.qpsc.ui.photoView;
//import com.jac.qpsc.utils.NetMan;
//
//import java.util.ArrayList;
//import java.util.List;
//
//import static u.aly.au.R;
//
///**
// * 我的询价>>询价列表>>报价列表>>报价详情
// * <p/>
// * <p/>
// * 报价详情adapter
// * Created by Administrator on 2016/5/11.
// *///
//public class BiddingDetailAdapter extends RecyclerView.Adapter<BiddingDetailAdapter.EnquiryViewHolder> {
//    //
//    private static final int TYPE_ENQUIRY_INFO = 0;
//    private static final int TYPE_ENQUIRY_FILES_TITLE = 1;
//    private static final int TYPE_ENQUIRY_FILE = 2;
//    private static final int TYPE_EVALUATE_TITLE = 3;
//    private static final int TYPE_EVALUATE_LOADING = 4;
//    private static final int TYPE_EVALUATE_ITEM = 5;
//    private static final int TYPE_EVALUATE_NODATA = 6;
//    private static final int TYPE_EVALUATE_DESTROY = 7;
//    boolean tag;
//    private static Context c;
//    ArrayList<String> arrayList = new ArrayList<>();
//    private LayoutInflater mInflater;
//
//    private BiddingDetailbean bidingData;
//    private int cardCount = 0;//卡片个数
//
//    private List<BiddingDetailbean> evaluates;
//    private List<Discuss.ResultBean> discuss;
//
//    public ILoadCallback mCallback;
//    private TextView remark;
//    private TextView tv_tishiiiii;
//    private String total;
//    private ScrollListenerHorizontalScrollView mHoriztalScrollview;
//
//
//    //对外暴露设置接口方法
//    public void setLoadCallback(ILoadCallback callback) {
//        this.mCallback = callback;
//    }
//
//    public void setTotal(String total) {
//        this.total = total;
//    }
//
//    public void setHoriztalScrollview(ScrollListenerHorizontalScrollView horiztalScrollview) {
//        mHoriztalScrollview = horiztalScrollview;
//    }
//
//
//    //回调接口，用于回调加载数据的方法
//    public interface ILoadCallback {
//        void onLoad(int pos, EnquiryViewHolder viewHolder);
//
//    }
//    CallBack mCallBack;
//    public interface CallBack{
//        void showMoney(double sum);
//        void getView(ScrollListenerHorizontalScrollView mHorizontal_scroll);
//        void getList(ArrayList<LineRadioGroup.leftname> innerClassess1);
//        void showItem();
//    }
//    public void setCallBack(CallBack callBack){
//        this.mCallBack = callBack;
//    }
//    public BiddingDetailAdapter(Context context, BiddingDetailbean bidding) {
//        this.c = context;
//        this.mInflater = LayoutInflater.from(context);
//        this.bidingData = bidding;
//        //  getcount();
//        LogUtils.i("bidding但行条目里面的内容" + bidding);
//        this.evaluates = new ArrayList<>();
//        this.discuss = new ArrayList<>();
//        if (bidding != null) {
//            cardCount = 5;
//            evaluates.add(bidingData);
//            LogUtils.i("evaluates集合内容和长度" + evaluates.toString() + "长度" + evaluates.size());
//            notifyDataSetChanged();
//        }
//
//
//    }
//
//
//    /**
//     * 在此刷新之后使用的方法
//     *
//     * @param
//     */
//    public void setData(List<Discuss.ResultBean> resultBeen) {
//        if (resultBeen != null) {
//            this.discuss.addAll(resultBeen);
//            LogUtils.i("评论集合集合长度" + discuss.size() + "内容是" + discuss);
//            notifyDataSetChanged();
//        } else {
//            LogUtils.i("加载评论的时候为空");
//        }
//
//    }
//
//
//    @Override
//    public int getItemViewType(int position) {
//        //第一行 显示 修配厂电话信息
//        if (position == 0) {
//
//            return TYPE_ENQUIRY_INFO;
//            //第二行显示 销售清单
//        } else if (position == 1) {
//            LogUtils.i("显示销售清单");
//            return TYPE_ENQUIRY_FILES_TITLE;
//            //
//        } else if (position == 2) {
//            LogUtils.i("显示图片");
//            return TYPE_ENQUIRY_FILE;
//
//        } else if (position == 3) {
//            LogUtils.i("显示多行");
//            return TYPE_EVALUATE_DESTROY;
//            // 我要显示的行  如果 等于 卡片 -2 就显示 历史评论
//        } else if (position == 4) {
//            LogUtils.i("显示历史评论");
//            return TYPE_EVALUATE_TITLE;
//        } else {
//
//            LogUtils.i("当前的号码" + position + "集合的长度" + evaluates.size() + "加载更多的条件是" + "当前的号" + position + "==" + (evaluates.size() - 1 + cardCount + discuss.size()));
//            //如果  评论 的集合 为空 就显示 无历史评价
//            if ("0".equals(bidingData.total_count) || "null".equals(bidingData.total_count) ||
//                    evaluates.size() == 0) {
//                return TYPE_EVALUATE_NODATA;
//                //到了集合末尾就是加载
//            } else if (position == cardCount + evaluates.size() - 1 + discuss.size()) {
//
//                LogUtils.i("显示加载更多");
//                return TYPE_EVALUATE_LOADING;
//            } else {
//                //如果 集合 和数据 就显示评论
//                LogUtils.i("显示评论了当前的号码" + (position - cardCount) + "集合的长度" + discuss.size() + "集合内容是" + discuss);
//                return TYPE_EVALUATE_ITEM;
//            }
//        }
//    }
//
//    @Override
//    public EnquiryViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
//        EnquiryViewHolder holder = null;
//        switch (viewType) {
//            //0 商家名字 图片
//            case TYPE_ENQUIRY_INFO:
//                holder = new EnquiryViewHolder(mInflater.inflate(R.layout.bidding_detail_enquriy_card0, null));
//                holder.initEnquiryView();
//                break;
//            //1 销售清单
//            case TYPE_ENQUIRY_FILES_TITLE:
//                holder = new EnquiryViewHolder(mInflater.inflate(R.layout.bidding_detail_file_title_card1, null));
//                break;
//            //2 加照片
//            case TYPE_ENQUIRY_FILE:
//                holder = new EnquiryViewHolder(mInflater.inflate(R.layout.bidding_detail_file_card2, null));
//                holder.initFileView();
//                break;
//            //3 评论标题
//            case TYPE_EVALUATE_TITLE:
//                holder = new EnquiryViewHolder(mInflater.inflate(R.layout.bidding_detail_evaluate_title_card3, null));
//                holder.initEvaluateTitle();
//                break;
//            //4 加载更多
//            case TYPE_EVALUATE_LOADING:
//                holder = new EnquiryViewHolder(mInflater.inflate(R.layout.bidding_detail_evaluate_loading_card5, null));
//                holder.initloadMore();
//                break;
//            //5评论条目
//            case TYPE_EVALUATE_ITEM:
//                holder = new EnquiryViewHolder(mInflater.inflate(R.layout.item_historical_review4, null));
//                holder.inititem();
//                break;
//            //6没有评论
//            case TYPE_EVALUATE_NODATA:
//                holder = new EnquiryViewHolder(mInflater.inflate(R.layout.bidding_detail_evaluatenodata_card99, null));
//                break;
//            //6没有评论
//            case TYPE_EVALUATE_DESTROY:
//                holder = new EnquiryViewHolder(mInflater.inflate(R.layout.item_destroy, null));
//                holder.setinitView();
//                break;
//        }
//        return holder;
//    }
//
//    @Override
//    public void onBindViewHolder(EnquiryViewHolder holder, int position) {
//
//        int viewType = getItemViewType(position);
//        //这里使用的是set方法
//        switch (viewType) {
//            case TYPE_ENQUIRY_INFO:
//
//                holder.setEnquiryInfo(position);
//                break;
//            case TYPE_ENQUIRY_FILES_TITLE:
//                break;
//            case TYPE_ENQUIRY_FILE:
//                //设置图片
//                if (bidingData.files.size() > 0) {
//                    //   07-19 15:20:09.812 22850-22850/com.jac.qpsc I/yumengmeng:
//                    // 报价条目图片路径http://123.57.184.93:8004/
//                    // [{"file_path":"group1\/M00\/00\/06\/ezm4XVeNyLCAR5sjAA4wxk9KoxE449.png","type":"jpg",
//                    // "file_path1":"group1\/M00\/00\/05\/ezm4XVeNyLCAc6e3AAAEWwumSGQ326.png","id":373}]
////                    for (int i = 0; i <bidingData.files.size() ; i++) {
////                        if ("jpg".equals(bidingData.files.get(i).file_path)){
////                            String file_path = bidingData.files.get(i).file_path;
////                            //Uri parse = Uri.parse(NetMan.BASE_URL + bidingData.files.get(i).file_path);
////
////                        }
////                    }
//
//                    LogUtils.i("报价条目图片路径" + NetMan.BASE_URL + bidingData.files);
//                    holder.setSimpleDraweeView(bidingData.files);
//                }
//
//                //LogUtils.i("备注信息"+bidingData.memo);
//                //   remark.setText("备注:"+bidingData.memo);
//                if (!TextUtils.isEmpty(bidingData.memo)) {
//                    remark.setText("备注:" + "\n" + bidingData.memo);
//                }
//                if ("0.00".equals(total)) {
//                        List<BiddingDetailbean.DataBean> accident = bidingData.accident;
//                    if (accident==null||accident.size()==0){
//                        LogUtils.i("如果表格为空我就让他显示");
//                        tv_tishiiiii.setVisibility(View.VISIBLE);
//                    }else{
//                        LogUtils.i("如果表格不为空我就让他隐藏");
//                        tv_tishiiiii.setVisibility(View.GONE);
//                    }
//
//                } else {
//                    LogUtils.i("价钱不等于0 我就让他隐藏");
//                    tv_tishiiiii.setVisibility(View.GONE);
//                }
//
//
////                    gv_listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
////                        @Override
////                        public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
////                            //开启传送门
////                            Intent intent = new Intent(OrderdetailsActivity.this, PhotoviewsssActivity.class);
////                            Bundle bundle = new Bundle();
////                            bundle.putStringArrayList("arrayList",arrayList);
////                            bundle.putInt("position",position);
////                            intent.putExtras(bundle);
////                            OrderdetailsActivity.this.startActivity(intent);
////                            LogUtils.i("我给查看大图适配器传过去的是position"+position);
////                        }
////                    });
//
//                break;
//            case TYPE_EVALUATE_LOADING:
//                holder.setLoadMore(holder);
//                break;
//            case TYPE_EVALUATE_TITLE:
//
//                holder.setEvaluateTitle(position);
//                break;
//            case TYPE_EVALUATE_ITEM:
//                LogUtils.i("真实的item" + (position - cardCount));
//                holder.setitem(position - cardCount);
//                break;
//            case TYPE_EVALUATE_NODATA:
//                holder.setitemNoData();
//                break;
//            case TYPE_EVALUATE_DESTROY:
//                LogUtils.i("调用多行工具");
//                if (!tag)
//                    holder.setitemdestData();
//                break;
//        }
//    }
//
//    @Override
//    public int getItemCount() {
//        if (evaluates == null || evaluates.size() == 0) {
//            LogUtils.i("现在集合长度就是0");
//            return 0;
//        } else {
//            LogUtils.i("现在集合总长度" + (cardCount + evaluates.size() + discuss.size()) + "有效长度" + (evaluates.size() + discuss.size()));
//            return cardCount + evaluates.size() + discuss.size();
//        }
//    }
//
//    public class EnquiryViewHolder extends RecyclerView.ViewHolder {
//        SimpleDraweeView simpleDraweeView;
//        TextView timeText;
//        TextView address;
//        TextView phone;
//        TextView seller_name;
//        TextView total_count;
//        RatingBar ratingBar2;
//        private TextView tvUser;
//        private TextView tvUsertext;
//        private SimpleDraweeView simpleDraweeView_title;
//        private NoScroolGridView gv_listView;
//        private LinearLayout mLl;
//        private LinearLayout ll_title;
//        private LinearLayout ll_downll;
//        private LinearLayout ll_right;
//        private TextView text__1;
//        private LinearLayout ll_sum;
//        private LinearLayout ll_num;
//        private ScrollListenerHorizontalScrollView mHorizontal_scroll;
//
//
//        public EnquiryViewHolder(View view) {
//            super(view);
//
//        }
//
//        //头初始化 的方法
//        public void initEnquiryView() {
//            seller_name = (TextView) itemView.findViewById(R.id.seller_name);
//            simpleDraweeView_title = (SimpleDraweeView) itemView.findViewById(R.id.item_order_facebook_item_sellerImg);
//            timeText = (TextView) itemView.findViewById(R.id.time);
////            type = (TextView) itemView.findViewById(R.id.type);
//            address = (TextView) itemView.findViewById(R.id.address);
//            phone = (TextView) itemView.findViewById(R.id.phone);
//        }
//
//        public void initFileView() {
//
//            //清单照片
//            //simpleDraweeView = (SimpleDraweeView) itemView.findViewById(R.id.simp_card);
//            //simpleDraweeView = (SimpleDraweeView) itemView.findViewById(R.id.simp_card);
//            //动态显示多少图
//            gv_listView = (NoScroolGridView) itemView.findViewById(R.id.gv_listView);
//            //备注
//            remark = (TextView) itemView.findViewById(R.id.remark);
//            tv_tishiiiii = (TextView) itemView.findViewById(R.id.tv_tishiiiii);
//
//            MyGridViewadapter myGridView = new MyGridViewadapter(c, arrayList);
//
//            gv_listView.setAdapter(myGridView);
//
//
//        }
//
//        public void setSimpleDraweeView(List<BiddingDetailbean.FilesBean> filePath) {
//            arrayList.clear();
//            for (int i = 0; i < filePath.size(); i++) {
//                if (filePath.get(i) != null) {
//                    arrayList.add(filePath.get(i).file_path);
//                }
//
//            }
//            LogUtils.i("商家图片地址是:" + NetMan.BASE_URL + filePath);
//
//
//            //simpleDraweeView.setImageURI(Uri.parse(NetMan.BASE_URL + filePath));
//
//            gv_listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
//                @Override
//                public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
//                    //开启传送门
//                    Intent intent = new Intent(c, photoView.class);
//                    Bundle bundle = new Bundle();
//                    bundle.putStringArrayList("arrayList", arrayList);
//                    bundle.putInt("position", position);
//                    intent.putExtras(bundle);
//                    c.startActivity(intent);
//                    LogUtils.i("我给查看大图适配器传过去的是position" + position);
//                }
//            });
//        }
//
//        //初始化  历史评论 控件
//        public void initEvaluateTitle() {
//            total_count = (TextView) itemView.findViewById(R.id.evaluate_title);
//            ratingBar2 = (RatingBar) itemView.findViewById(R.id.ratingBar2);
//        }
//
//        public void setEvaluateTitle(int position) {
//            LogUtils.i("判断值是否有" + "total_count" + bidingData.total_count + "ratingBar2" + bidingData.level);
//            if (bidingData != null) {
//                if ("null".equals(bidingData.total_count)
//                        || "0".equals(bidingData.total_count)
//                        || "null".equals(bidingData.level)
//                        || "0".equals(bidingData.level)
//                        || bidingData.level == null) {
//                    total_count.setText("无历史评论");
//                    ratingBar2.setRating(0);
//                } else {
//                    LogUtils.i("现在集合里面的数据是" + "bidingData" + bidingData);
//                    total_count.setText("历史评论" + "(" + ((int) Float.parseFloat(bidingData.total_count)) + ")");
//                    ratingBar2.setRating(Float.parseFloat(bidingData.level));
//                }
//            }
//
////            if (Integer.parseInt(bidingData.total_count)==0){
////
////
////            }else{
////
////            }
//        }
//
//        //设置头信息
//        public void setEnquiryInfo(int position) {
////            textView.setText(bidingData.getShort_name());
////            if(bidingData.getFiles().size()>0)
////            {
////                simpleDraweeView.setImageURI(Uri.parse(bidingData.getFiles().get(0).getFile_path1()));
////            }
//            seller_name.setText(bidingData.short_name);
//            timeText.setText(bidingData.create_time);
////            type.setText(PartsTypeConstants.getTypeValue(bidingData.getParts_type()));
//            address.setText(bidingData.address);
//            phone.setText(bidingData.phone1);
//
//
//            //plaque_pic
//            Uri parse = Uri.parse(NetMan.BASE_URL + bidingData.plaque_pic);
//            simpleDraweeView_title.setImageURI(parse);
//            //报价详情打电话@_@
//            phone.setOnClickListener(new View.OnClickListener() {
//                @Override
//                public void onClick(View v) {
//                    UtilsCallPhone.callPhone(c, bidingData.phone1, PhoneSetNum.PHONE_QUOTATION_DETAILS);
//                }
//            });
//        }
//
//        /**
//         * 加载更多的
//         */
//        public void initloadMore() {
//
//        }
//
//        public void setLoadMore(EnquiryViewHolder holder) {
//            int layoutPosition = getLayoutPosition();
//            mCallback.onLoad(layoutPosition - cardCount, holder);
//        }
//
//        //设置条目
//        public void setitem(int position) {
//
//            tvUser.setText(discuss.get(position).userid);
//            tvUsertext.setText(discuss.get(position).remark);
//            float v = Float.parseFloat(discuss.get(position).level);
//            ratingBar2.setRating(v);
//        }
//
//        //初始化条目
//        public void inititem() {
//            tvUser = (TextView) itemView.findViewById(R.id.tv_user);
//            ratingBar2 = (RatingBar) itemView.findViewById(R.id.myratingBar2);
//            tvUsertext = (TextView) itemView.findViewById(R.id.tv_usertext);
//
//        }
//
//        //设置没有数据
//        public void setitemNoData() {
//
//        }
//
//        //多行单选
//        public void setitemdestData() {
//
//            tag = true;
//            LogUtils.i("这页面总数据"+bidingData);
//            List<BiddingDetailbean.DataBean> accident = bidingData.accident;
//            if (accident==null||accident.size()==0){
//                return;
//            }
//            text__1.setVisibility(View.VISIBLE);
//            text__1.setText("点我统计总价钱"+"\t"+"温馨提示:如果名字显示太长可以点击名字看商品完整名字");
//            //左面
//            ArrayList<LineRadioGroup.leftname> innerClasses0 = new ArrayList<>();
//            //上面
//            ArrayList<LineRadioGroup.leftname> innerClassess1 = new ArrayList<>();
//            //右面结算
//            ArrayList<LineRadioGroup.leftname> innerClassess2 = new ArrayList<>();
//            //右面个数
//            ArrayList<LineRadioGroup.leftname> innerClassess3 = new ArrayList<>();
//
//
//            //网络获取的
////            ArrayList<listbean.DataBean> listbeen = new ArrayList<>();
////            for (int i = 0; i < 20; i++) {
////                listbean.DataBean dataBean = new listbean.DataBean();
////
////                dataBean.price = "" + i;
////                dataBean.num = "" + 5;
////
////                switch (i) {
////                    case 0:
////                    case 4:
////                    case 8:
////                    case 12:
////                    case 16:
////                        dataBean.type = "1列";
////                        dataBean.name = "行" + i;
////                        dataBean.rows = "" + i;
////                        break;
////                }
////                switch (i) {
////                    case 1:
////                    case 5:
////                    case 9:
////                    case 13:
////                    case 17:
////                        dataBean.type = "2列";
////                        dataBean.name = "行" + i;
////                        dataBean.rows = "" + i;
////                        break;
////                }
////                switch (i) {
////                    case 2:
////                    case 6:
////                    case 10:
////                    case 14:
////                    case 18:
////                        dataBean.type = "3列";
////                        dataBean.name = "行" + i;
////                        dataBean.rows = "" + i;
////                        break;
////                }
////                switch (i) {
////                    case 3:
////                    case 7:
////                    case 11:
////                    case 15:
////                    case 19:
////                        dataBean.type = "4列";
////                        dataBean.name = "行" + i;
////                        dataBean.rows = "" + i;
////                        break;
////                }
////                listbeen.add(dataBean);
////            }
//
//            //加载右下角的
//            List<LineRadioGroup.FeedbackOptionItem> optionsList = new ArrayList<>();
//            LogUtils.i("给上下集合放数据 原始集合数据是" + accident);
//          if (null!=accident&&accident.size()>0){
//              for (int i = 0; i < accident.size(); i++) {
//                  BiddingDetailbean.DataBean dataBean = accident.get(i);
//                  LogUtils.i("给每一个横条的 数据 是啥" + dataBean);
//                  //给上面和左面的集合添加数据
//                  if (i <= 5) {
//                      innerClassess1.add(new LineRadioGroup.leftname(i + "", dataBean.type+"", dataBean.rows+"", dataBean.num));
//                  }
//                  if (i == 0) {
//                      innerClasses0.add(new LineRadioGroup.leftname(i + "", dataBean.name + "", dataBean.rows + "", dataBean.num));
//                       innerClassess3.add(new LineRadioGroup.leftname(i + "", dataBean.name+"", dataBean.rows+"", dataBean.num));
//                      //  innerClassess2.add(new LineRadioGroup.leftname(i + "", dataBean.name, dataBean.rows, dataBean.num));
//                  }
//                      if (i >= 3 && i % 4 == 0) {
//                      LogUtils.i("横着的i是" + i);
//                      innerClasses0.add(new LineRadioGroup.leftname(i + "", dataBean.name+"", dataBean.rows+"", dataBean.num));
//                      //  innerClassess2.add(new LineRadioGroup.leftname(i + "", dataBean.name, dataBean.rows, dataBean.num));
//                      innerClassess3.add(new LineRadioGroup.leftname(i + "", dataBean.name+"", dataBean.rows+"", dataBean.num));
//                  }
//                  optionsList.add(new LineRadioGroup.FeedbackOptionItem("" + i, dataBean.price+"", dataBean.name+"", dataBean.type+"", dataBean.rows+"", dataBean.num,dataBean.span));
//
//
//              }
//              LogUtils.i("加载左面文字");
//              LineRadioGroup.updateLeftNameView(c, 0, innerClasses0, ll_downll);
//              LogUtils.i("加载头部文字");
//              LineRadioGroup.updateLeftNameView(c, 1, innerClassess1, ll_title);
//              LogUtils.i("加载右面个数文字");
//              LineRadioGroup.updateLeftNameView(c, 3, innerClassess3, ll_num);
//              LogUtils.i("个数统计左面名字"+innerClasses0+"右面个数"+innerClassess3);
//
//              LogUtils.i("加载右面结算" + innerClassess2.size());
//              innerClassess2.addAll(innerClasses0);
//              LineRadioGroup.updateLeftNameView(c, 2, innerClassess2, ll_sum);
//
//              mCallBack.getView(mHorizontal_scroll);
//              mCallBack.getList(innerClassess1);
//              LogUtils.i("加载右下文字");
//              LineRadioGroup.updateOptionsViewcheBox(c, optionsList, ll_right, new LineRadioGroup.CallBackItemNum() {
//                  @Override
//                  public void callback(int pos, String title, int linespos, String num, String span) {
//                      LogUtils.i("我点击的号码" + pos + "\t" + "标题" + title + "在哪一行" + linespos + "在那一列"+span+"这行价钱是" + Float.parseFloat(title) + "*" + num + "=" + (Double.parseDouble(title) * Double.parseDouble(num)));
//                      ArrayList<TextView> arrayList =
//                              LineRadioGroup.getArrayList1();
//                      TextView textView = arrayList.get(linespos);
//                      textView.setText(Double.parseDouble(title) + "*" + num + "=" + Arith.mul(Double.parseDouble(title), Double.parseDouble(num)));
//
//                    text__1.callOnClick();
////                      ArrayList<LineRadioGroup.FeedbackOptionItem> feedbackOptionItems = BiddingDetailAdapter.toletTableSumcenl();
////                      float sum = BiddingDetailAdapter.getSum(feedbackOptionItems);
////                      LogUtils.i("点击了按钮的集合总价钱" + sum + "内容" + feedbackOptionItems.toString());
////                      UtilsToast.showToast(c, "总计"+sum);
////                      mCallBack.showMoney(sum);
//                  }
//              });
//
////              LineRadioGroup.updateOptionsView(c, optionsList, ll_right, new LineRadioGroup.CallBackItemNum() {
////                  @Override
////                  public void callback(int pos, String title, int linespos, String num) {
////                      LogUtils.i("我点击的号码" + pos + "\t" + "标题" + title + "在哪一行" + linespos + "这行价钱是" + Float.parseFloat(title) + "*" + num + "=" + (Float.parseFloat(title) * Integer.parseInt(num)));
//////                      ArrayList<TextView> arrayList =
//////                              LineRadioGroup.getArrayList1();
//////                      //显示结算文字
//////                      TextView textView = arrayList.get(linespos);
//////                      textView.setText(Float.parseFloat(title) + "*" + num + "=" + (Float.parseFloat(title) * Integer.parseInt(num)));
////                  }
////
////              });
//
//              text__1.setOnClickListener(new View.OnClickListener() {
//                  @Override
//                  public void onClick(View v) {
//                      ArrayList<LineRadioGroup.FeedbackOptionItem> feedbackOptionItems = BiddingDetailAdapter.toletTableSumcenl();
//                      double sum = BiddingDetailAdapter.getSum(feedbackOptionItems);
//                      LogUtils.i("点击了按钮的集合总价钱" + sum + "内容" + feedbackOptionItems.toString());
//                      UtilsToast.showToast(c, "总价钱"+sum);
//                      mCallBack.showMoney(sum);
//                  }
//              });
//          }
//
//
//
//
//
//        }
//
//        public void setinitView() {
//
//            mHorizontal_scroll = (ScrollListenerHorizontalScrollView) itemView.findViewById(R.id.horizontal_scroll);
//            Handler handler = new Handler();
//            mHorizontal_scroll.setHandler(handler);
//            mHorizontal_scroll.setScrollView(mHoriztalScrollview);
//            mHorizontal_scroll.setHorizontalScrollBarEnabled(false);
//            ll_title = (LinearLayout) itemView.findViewById(R.id.ll_title);
//            ll_downll = (LinearLayout) itemView.findViewById(R.id.ll_downll);
//            ll_right = (LinearLayout) itemView.findViewById(R.id.ll_right);
//            ll_sum = (LinearLayout) itemView.findViewById(R.id.ll_sum);
//            ll_num = (LinearLayout) itemView.findViewById(R.id.ll_num);
//
//            text__1 = (TextView) itemView.findViewById(R.id.text__1);
//            mCallBack.showItem();
//        }
//    }
//
//    /**
//     *
//     * 统计结果 多行单选
//     */
//    public static ArrayList<LineRadioGroup.FeedbackOptionItem> toletTableSum() {
//        float sum;
//        ArrayList<LineRadioGroup.FeedbackOptionItem> intsx = new ArrayList<>();
//        ArrayList<RadioGroup> arrayList =
//                LineRadioGroup.getArrayList0();
//        //LogUtils.i("生成多行的集合数据"+arrayList);
//
//        for (int i = 0; i < arrayList.size(); i++) {
//            RadioGroup radioGroup = arrayList.get(i);
//            boolean tag = false;
//            for (int j = 0; j < radioGroup.getChildCount(); j++) {
//                RadioButton childAt = (RadioButton) radioGroup.getChildAt(j);
//                LineRadioGroup.FeedbackOptionItem childtag = (LineRadioGroup.FeedbackOptionItem) childAt.getTag();
//                if (childAt.isChecked()) {
//                    tag = true;
//                    intsx.add(childtag);
//                }
//                //判断这一行 如果没有被点击的 就弹出来东西
////                if (j == radioGroup.getChildCount() - 1 && !tag) {
////                    LogUtils.i("有没有勾选上的" + "目前集合里面已经勾选的有" + intsx);
////                    UtilsToast.showToast(c, "还有没勾选上的条目");
////                    return null;
////                }
//            }
//        }
//
//         sum = 0;
//        for (int i = 0; i < intsx.size(); i++) {
//            LineRadioGroup.FeedbackOptionItem feedbackOptionItem = intsx.get(i);
//            float i1 = Integer.parseInt(feedbackOptionItem.num) * Float.parseFloat(feedbackOptionItem.title);
//            sum += i1;
//        }
//        LogUtils.i("点击了按钮的集合总价钱" + sum + "内容" + intsx.toString());
//        UtilsToast.showToast(c, "点击了按钮的集合总价钱"+sum);
//
//        return intsx;
//    }
//    /**
//     *
//     * 统计结果 多行单选 带取消
//     */
//    public static ArrayList<LineRadioGroup.FeedbackOptionItem> toletTableSumcenl() {
//        ArrayList<LineRadioGroup.FeedbackOptionItem> intsx = new ArrayList<>();
//        ArrayList<CheckBox[]> arrayList =
//                LineRadioGroup.getArrayList0box();
//        //LogUtils.i("生成多行的集合数据"+arrayList);
//
//        for (int i = 0; i < arrayList.size(); i++) {
//
//            CheckBox[] checkBoxes = arrayList.get(i);
//            boolean tag = false;
//            for (int j = 0; j < checkBoxes.length; j++) {
//                CheckBox checkBox = checkBoxes[j];
//                //必须 别问为什么 必须加判断
//                if (checkBox.isChecked()&&!tag) {
//                    //有被点击的
//                    tag = true;
//                    LineRadioGroup.FeedbackOptionItem tag1 = (LineRadioGroup.FeedbackOptionItem) checkBox.getTag();
//                    intsx.add(tag1);
//                }
//
//                //判断这一行 如果没有被点击的 就弹出来东西
////                if (j == radioGroup.getChildCount() - 1 && !tag) {
////                    LogUtils.i("有没有勾选上的" + "目前集合里面已经勾选的有" + intsx);
////                    UtilsToast.showToast(c, "还有没勾选上的条目");
////                    return null;
////                }
//            }
//            //如果没有被点击的
//            if (!tag){
//
//            }
//        }
//
//        getSum(intsx);
//
//        return intsx;
//    }
//
//    public static double getSum(ArrayList<LineRadioGroup.FeedbackOptionItem> intsx) {
//        double sum;
//        sum = 0;
//        if (intsx.size()>0&&intsx!=null){
//            for (int i = 0; i < intsx.size(); i++) {
//                LineRadioGroup.FeedbackOptionItem feedbackOptionItem = intsx.get(i);
//                double add = Arith.mul(Double.parseDouble(feedbackOptionItem.num), Double.parseDouble(feedbackOptionItem.title));
//               // float i1 = Integer.parseInt(feedbackOptionItem.num) * Float.parseFloat(feedbackOptionItem.title);
//                //sum += add;
//                sum = Arith.add(sum, add);
//
//            }
//
//        }
//
//        return sum;
//    }
//
////    /**
////     *
////     * 先访问以下 获取 评论总数
////     */
////    public void getcount() {
////        Map<String, String> params = new HashMap<String, String>();
////
////        params.put("bidding_no",bidingData.bidding_no );
////        //   params.put("bidding_no", "1468811068605422");
////        //拉一次 增加一个数
////        params.put("pn", "1");
////        params.put("pz", "1");
////        //步骤1 删除之前的
////        NetMan.call(c, NetMan.DISCUSS, params, new NetMan.CallListener() {
////            @Override
////            public void call_success(JSONObject result) {
////                Discuss data = result.getObject("data", Discuss.class);
////                resultBean = data.result.get(0);
////                LogUtils.i("resultBean内容"+resultBean);
////                if (data.result.size()==1&&Integer.parseInt(resultBean.total_count)==0){
////                   LogUtils.i("说明这个是空的");
////                   total = "0";
////               }else {
////
////                   total = data.total;
////               }
////
////            }
////
////            @Override
////            public void call_error(int error_code, String err_msg) {
////
////            }
////
////        });
////
////    }
//
//
//
//}
